require.config({
  'paths':{
    'jquery':"//apps.bdimg.com/libs/jquery/2.1.4/jquery.min"
  }
});

require(['jquery'],function($){
  $(function(){

    var $btnAdd = $('#add');

    $btnAdd.click(function(){
      require(['timer-button'],function(TimerBtn){
        var tb = new TimerBtn();
        tb.show({
          delay:5,
          title:'发送短信验证码',
          onclick:function(){
            console.log('clicked');
          }
        });
      })
    })
  })
})



